package com.ant.time.line.activities;

import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.net.Uri;
import android.view.View;

import com.ant.time.line.R;
import com.ant.time.line.databinding.ActivityMainBinding;

public class MainActivity extends BaseActivity {
    private ActivityMainBinding binding;

    @Override
    public void initLayout() {
//        setContentView(R.layout.activity_main);
        binding = DataBindingUtil.setContentView(this, R.layout.activity_main);
    }

    @Override
    public void initUi() {
        binding.acMainTimeLine.setType(0);
    }

    @Override
    public void initData() {

    }

    @Override
    public void initListener() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.acMainObt:
                toChun();
                break;
        }
    }

    public void toChun() {
        try {
            Intent chun = new Intent(Intent.ACTION_VIEW, Uri.parse("bcrd://launch"));
            startActivity(chun);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
